package org.easydev.wechat.client.dto.base;

import org.easydev.wechat.annotation.RequestRef;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * <Description> 获取AccessToken<br>
 * 
 * @author jian<br>
 */
@RequestRef("token")
public class AccessToken extends BaseParam {

    /**
     * 获取access_token填写client_credential
     */
    @JSONField(name = "grant_type")
    private String grantType = "client_credential";

    /**
     * 第三方用户唯一凭证
     */
    @JSONField(name = "appid")
    private String appId;

    /**
     * 第三方用户唯一凭证密钥，即appsecret
     */
    private String secret;

    /**
     * get grantType
     * 
     * @return Returns the grantType.<br>
     */
    public String getGrantType() {
        return grantType;
    }

    /**
     * set grantType
     * 
     * @param grantType The grantType to set. <br>
     */
    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    /**
     * get appId
     * 
     * @return Returns the appId.<br>
     */
    public String getAppId() {
        return appId;
    }

    /**
     * set appId
     * 
     * @param appId The appId to set. <br>
     */
    public void setAppId(String appId) {
        this.appId = appId;
    }

    /**
     * get secret
     * 
     * @return Returns the secret.<br>
     */
    public String getSecret() {
        return secret;
    }

    /**
     * set secret
     * 
     * @param secret The secret to set. <br>
     */
    public void setSecret(String secret) {
        this.secret = secret;
    }

}
